// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'

Shader "Unlit/虚假颜色DEBUG"
{
    Properties
    {
    
    }
    SubShader
    {
     

        Pass
        {
            CGPROGRAM
            #pragma vertex vert
            #pragma fragment frag
            // make fog work
            #include "UnityCG.cginc"

            struct v2f{
            float4 pos : SV_POSITION;
            fixed4 color :COLOR0;
            };

            v2f vert(appdata_full v){
            v2f o;
            o.pos=UnityObjectToClipPos(v.vertex);
            o.color=fixed4(v.normal*0.5,1.0 ); //输出的是法线颜色
       //      o.color=fixed4(v.Vertex.xyz,1.0 );
            return o;

            }

            fixed4 frag(v2f i):SV_Target{
            return i.color;
            }

            ENDCG
        }
    }
}
